home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 401-425 / disk_408 / post / post13.lzh / Post / source / makefile < prev    next >
Makefile  |  1990-10-27  |  3KB  |  106 lines

  1. # PostScript interpreter make file (Amiga)
  2. # This version assumes Lattice make (lmk), C (lc), asm, blink
  3.  
  4. # Debug symbols
  5.  
  6. #LCDBG  = -d0 -O           # no debug,            optimise
  7.  LCDBG  = -d2 -O           # full debugging info, optimise
  8. #LCDBG  = -d3              # full debugging info, flush regs
  9.  
  10. # Include debugging code
  11.  
  12.  LCDBC  =                  # no debugging code
  13. #LCDBC  = -dFONTDEBUG      # font debugging code
  14.  
  15. # Cpu type and floating point (do not mix and match!)
  16.  
  17.  LCCPU  = -m0              # 68000 (or 68010/020/030)
  18.  LCFPT  = -fl              # Lattice IEEE library
  19.  LIBFPT = lib:lcm.lib      # Lattice IEEE library
  20.  
  21. #LCCPU  = -m2              # 68020 (or 68030)
  22. #LCFPT  = -f8 -dM68881     # 68881 (or 68882)
  23. #LIBFPT = lib:lcm881.lib   # 68881 (or 68882)
  24.  
  25. #
  26.  
  27. LIBOBJ = postinit.o postdata.o postchar.o postfont.o postgraph.o postshade.o postdraw.o postint.o postop1.o postop2.o postop3.o postop4.o
  28.  
  29. # Default target
  30.  
  31. all:            post postband postlj post.library
  32.  
  33. # Main program
  34.  
  35. post:           post.o postasm.o
  36.     blink from lib:c.o post.o postasm.o to post lib lib:lc.lib smalldata nodebug
  37.  
  38. # Band printing driver
  39.  
  40. postband:       postband.o postasm.o
  41.     blink from lib:c.o postband.o postasm.o to postband lib lib:lc.lib smalldata nodebug
  42.  
  43. # LaserJet driver
  44.  
  45. postlj:       postlj.o postasm.o
  46.     blink from lib:c.o postlj.o postasm.o to postlj lib lib:lc.lib smalldata nodebug
  47.  
  48. # Shared library
  49.  
  50. post.library:    postlib.o $(LIBOBJ)
  51.     blink from postlib.o $(LIBOBJ) to post.library lib $(LIBFPT) lib:lc.lib smalldata nodebug
  52.  
  53. # Statically linked version for debugging
  54.  
  55. poststat:       poststat.o postasm.o $(LIBOBJ)
  56.     blink from lib:c.o poststat.o postasm.o $(LIBOBJ) to poststat lib $(LIBFPT) lib:lc.lib smalldata addsym
  57.   
  58. # The assembler routines contain FPU instructions
  59.  
  60. postasm.o:      postasm.a
  61.         asm -u -m2 -iinclude: postasm.a
  62.  
  63. # The library structure
  64.  
  65. postlib.o:      postlib.a
  66.         asm -u -iinclude: postlib.a
  67.  
  68. # The main program is compiled without stack checking as it contains a
  69. # subtask, standard 68000 version only.
  70.  
  71. post.o:         post.c      postlib.h
  72.         lc -v $(LCDBG) post.c
  73.  
  74. poststat.o:     post.c      postlib.h
  75.         lc -v $(LCDBG) -dSTATICLINK -opoststat.o post.c
  76.  
  77. # The band printing driver, standard 6800 version only
  78.  
  79. postband.o:     postband.c  postlib.h
  80.         lc $(LCDBG) postband.c
  81.  
  82.  
  83. # The LaserJet driver, standard 6800 version only
  84.  
  85. postlj.o:       postlj.c    postlib.h
  86.         lc $(LCDBG) postlj.c
  87.  
  88.  
  89. # The library is compiled without stack checking, as it uses its caller's
  90. # stack; 68000 and 68020/68881 versions.
  91.  
  92. .c.o:
  93.         lc -v $(LCDBG) $(LCDBC) $(LCCPU) $(LCFPT) $*.c
  94.  
  95. postinit.o:     postinit.c  postlib.h post.h
  96. postdata.o:     postdata.c  post.h
  97. postchar.o:     postchar.c  post.h
  98. postgraph.o:    postgraph.c post.h
  99. postshade.o:    postshade.c post.h
  100. postdraw.o:     postdraw.c  post.h
  101. postint.o:      postint.c   post.h
  102. postop1.o:      postop1.c   post.h
  103. postop2.o:      postop2.c   post.h
  104. postop3.o:      postop3.c   post.h
  105. postop4.o:      postop4.c   post.h
  106.